package com.gang.music.system.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gang.music.system.entity.RoleMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author gang
 * @since 2017-10-29
 */
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

	List<Integer> selectMenuIdsByRoleId(Integer roleId);

	void batchInsert(@Param("roleId")Integer roleId, 
			@Param("menuIdList")List<Integer> menuIdList);

	void deleteByRoleId(Integer roleId);

}